package demo4;

import demo4.config.Config;
import demo4.contorller.UserController;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import test.Student;

public class Demo {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context =
                new AnnotationConfigApplicationContext(Config.class);
        UserController userController = context.getBean(UserController.class);

        //注册账号
        userController.regUser();

        //登录账号
        userController.loginUser();
    }
}
